﻿using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
           
            int count=0;
            string str = "";
            //FileStream file2 = new FileStream("d:\\Gudkov Stud\\test.txt", FileMode.Open);
            StreamReader reader = new StreamReader("d:\\Gudkov Stud\\test.txt");
            while ((str = reader.ReadLine()) != null)
            {
                Console.WriteLine(str);
                count++;
            }

            Console.WriteLine("Число строк в тексте: "+count);
            reader.Close();
            Console.ReadLine();

            string[] array = str.Split(',');
            Console.WriteLine("Name: " + "{0}" + "\r\n" + "SurName: " + "{1}" + "\r\n" + "Patronymic: " + "{2}" + "\r\n" + "================================" + "\r\n");
        }
    }
}
